import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {AdminRoutingModule} from './main-routing.module';
import { JsonpModule } from '@angular/http';
import { CDSModule } from '../comm-components/directives/validator.module';
import {FormsModule} from '@angular/forms';
import { NotificationModule } from '../comm-components/notification/notification.module';
import { datepickerModule } from '../comm-components/datepicker/datepicker.module';
import {AdOssUploadService} from '../lib/service/ad-oss-upload.service';
import {AddressService} from '../lib/service/address.service';
import {LocalStorageService} from '../lib/service/local-storage.service';

import {  MainComponent } from './main.component';
import {MainHeaderComponent} from '../comm-components/main-header/main-header.component';
import {Ng2BootstrapModule} from 'ngx-bootstrap';
import {MainSideModule} from '../comm-components/main-side/main-side.module';

@NgModule({
    imports: [
      CommonModule,
      FormsModule,
      JsonpModule,
      CDSModule,
      AdminRoutingModule,
      Ng2BootstrapModule,
      NotificationModule,
      datepickerModule,
      MainSideModule
    ],
    declarations: [
      MainComponent,
      MainHeaderComponent,
    ],
    providers: [
      AdOssUploadService,
      AddressService,
      LocalStorageService
    ]
})
export class MainModule { }
